package com.mac.livedatabus

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main_2.*

class Main2Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main_2)

        button.setOnClickListener {
            LiveDataBus.get<String>(Constant.TEST_KEY)
                .postValue("aasdfasdfasdfasdf")
        }
    }
}
